package com.xcm.constant;

/**
 * 用户相关常量类
 *
 * @author 林强
 * @date 2018-04-12 11:15
 */
public class SysUserConstants {
    public static final String SEX_MAIL = "1";
    public static final String SEX_FEMAIL = "0";
    public static final String SEX_MAIL_CHINESE = "男";
    public static final String SEX_FEMAIL_CHINESE = "女";

    public static final String GET_SUCCESS = "查询用户成功";
    public static final String GET_FAIL = "查询用户失败";

    public static final String SAVE_SUCCESS = "新增用户成功";
    public static final String SAVE_FAIL = "新增用户失败";

    public static final String DELETE_SUCCESS = "删除用户成功";
    public static final String DELETE_FAIL = "删除用户失败";
    public static final String DELETE_FAIL_NO_USERID = "请选择需要删除的用户";
    public static final String DELETE_FAIL_SUPER_ADMIN_CANNOT_DELETE = "超级管理员不能删除";

    public static final String UPDATE_SUCCESS = "更新用户成功";
    public static final String UPDATE_FAIL = "更新用户失败";

    public static final String CHANGE_PASSWORD_SUCCESS = "修改密码成功";
    public static final String CHANGE_PASSWORD_FAIL = "修改密码失败";
    public static final String CHANGE_PASSWORD_FAIL_NO_OLD_PASSWORD = "旧密码不能为空";
    public static final String CHANGE_PASSWORD_FAIL_NO_NEW_PASSWORD = "新密码不能为空";
    public static final String CHANGE_PASSWORD_FAIL_OLD_NEW_SAME = "新旧密码不能相同";
    public static final String CHANGE_PASSWORD_FAIL_OLD_PASSWORD_ERROR = "原密码错误";
    public static final String NOT_LOGIN_OR_EXPIRE = "用户未登录或已超时";

    public static final String ENABLE_SUCCESS = "启用成功";
    public static final String ENABLE_FAIL = "启用失败";
    public static final String ENABLE_FAIL_NO_USERID = "请选择需要启用的用户";

    public static final String DISABLE_SUCCESS = "停用成功";
    public static final String DISABLE_FAIL = "停用失败";
    public static final String DISABLE_FAIL_NO_USERID = "请选择需要停用的用户";
    public static final String DISABLE_FAIL_SUPER_ADMIN_CANNOT_DISABLE = "超级管理员不能被停用";

    public static final String IMPORT_SUCCESS = "导入成功";
    public static final String IMPORT_FAIL = "导入失败";
    public static final String IMPORT_FAIL_NOT_SUPPORT_FILE_TYPE = "不支持的文件类型";

    public static final String STATUS_DISABLE = "0";
    public static final String STATUS_ENABLE = "1";

    public static final String VALIDATE_NO_SYS_USER = "未填写用户信息";
    public static final String VALIDATE_USERNAME_ERROR = "用户名格式错误，请输入字母或数字或下划线5-32位";
    public static final String VALIDATE_PASSWORD_ERROR = "密码格式错误，请输入字母或数字或下划线6-32位";
    public static final String VALIDATE_DEPARTMENT_ERROR = "部门不能为空";
    public static final String VALIDATE_EMAIL_ERROR = "邮箱错误";
    public static final String VALIDATE_TELEPHONE_ERROR = "手机号错误";
    public static final String VALIDATE_ID_CARD_ERROR = "身份证号码错误";
    public static final String VALIDATE_ROLE_ERROR = "角色不能为空";
    public static final String VALIDATE_USER_EXITS = "用户已经存在";
    public static final String VALIDATE_USER_NOT_EXITS = "用户不存在";
    public static final String VALIDATE_REALNAME_ERROR = "真实姓名格式错误，请输入英文或中文1-20位";
    public static final String VALIDATE_POST_ERROR = "岗位格式错误，请输入数字英文中文1-32位";

    public static final String LOGIN_NO_USER_NAME = "用户名不能为空";
    public static final String LOGIN_NO_PASSWORD = "密码不能为空";
    public static final String LOGIN_NO_SYSTEM = "系统标志不能为空";
    public static final String LOGIN_NO_VERIFICATION = "验证码不能为空";
    public static final String LOGIN_USER_NAME_ERROR = "用户名错误";
    public static final String LOGIN_PASSWORD_ERROR = "密码错误";
    public static final String LOGIN_SYSTEM_ERROR = "系统标志错误或不存在";
    public static final String LOGIN_VERIFICATION_ERROR = "验证码错误";
    public static final String LOGIN_SUCCESS = "登录成功";
    public static final String LOGIN_FAIL = "登录失败";
    public static final String LOGIN_FAIL_NO_REDIRECT_URL = "回调地址不能为空";
    public static final String LOGIN_FAIL_NO_SETCOOKIE_URL = "设置cookie地址不能为空";
    public static final String LOGIN_FAIL_USER_LOCKED = "用户已经被锁定不能登录，请与管理员联系";
    public static final String LOGIN_FAIL_USERNAME_OR_PASSWORD_ERROR = "用户名或密码错误";
    public static final String LOGIN_FAIL_NO_AUTHRITY_IN_SYSTEM = "对不起，您在该系统无访问权限，请联系管理员";

    public static final String LOGOUT_FAIL = "退出失败";
    public static final String LOGOUT_SUCCESS = "退出成功";
    public static final String LOGOUT_NO_USER = "用户已退出或不存在，请确认";
}